/************************************************************************/
/* GUI                                                                  */
/************************************************************************/
#include "GUI/Panels/BasePanel.h"

namespace TD_GUI {

	/************************************************************************/
	/* Default definitions                                                  */
	/************************************************************************/
	const string BasePanel::m_defaultFont = "Fonts/SuperMarioAlphabet.ttf";
	const Color BasePanel::m_defaultFontColor(Color::WHITE);
	const unsigned int BasePanel::m_defaultFontSize = 25 * TD_Game::screenWidth/1024.0;

	/************************************************************************/
	/* ctors and dtors                                                      */
	/************************************************************************/

	BasePanel::BasePanel() {

	}
	BasePanel::BasePanel(const Coord2D &initialPosition, const Coord2D &bounds) : Tile(initialPosition) {
		m_shapes.push_back(new RectangleShape(initialPosition, bounds));
		m_isVisible = true;
	}

	BasePanel::~BasePanel() {

	}
	
	/************************************************************************/
	/* Rendering                                                            */
	/************************************************************************/
	void BasePanel::render(SDL_Surface *const g_destSurface, unsigned int deltaTime) {
		if(m_pImage != NULL && m_isVisible)
			blitSurface(g_destSurface);

	}

	
}